<!-- 收货人信息,支付方式，商品清单 -->
<div class="title">确认支付订单</div>

<div id="order_detail">
	<div class="titleindex">填写并核对订单信息</div>

	<div class="item">
		<div class="title2">收货信息</div>
		<div class="info">
			<div class="addr">
				<div class="useaddr">
				{{#if user.pay_ach.info.user_address}}
					<h4>当前选择的收货地址：</h4>
					<span>
						{{user.pay_ach.info.user_address.name}}，
						{{user.pay_ach.info.user_address.mobilenumber}}，
						{{user.pay_ach.info.user_address.province}}
						{{user.pay_ach.info.user_address.town}}
						{{user.pay_ach.info.user_address.county}}，
						{{user.pay_ach.info.user_address.detail}}
					</span>
				{{#else}}
				<p>请选择收获地址</p>
				{{/if}}
				</div>
			<!-- 	<input type="radio" name="addr" value="1" />
				<span>薛先森，1864982****，福建省福州市闽侯县，上街大学城闽江学院</span> -->
			</div>
			{{#each user.address_detail}}
			<div class="addr">
				<input type="radio" name="addr" checked="{{$Top.user.pay_ach.info.user_address._id}}" value="{{_id}}" event-click="{{'$Top.$Event.pays.change_user_address'}}"/>
				<span>{{name}}，{{mobilenumber}} {{phonenumber&&("/"+phonenumber)}}，{{province}}{{town}}{{county}}，{{detail}}</span>
			</div>
			{{/each}}
			<!-- <div class="addr">
				<input type="radio" name="addr" value="2" />
				<span>薛先森，1864982****，福建省福州市闽侯县，上街大学城闽江学院</span>
			</div>
			<div class="addr">
				<input type="radio" name="addr" value="3" />
				<span>薛先森，1864982****，福建省福州市闽侯县，上街大学城闽江学院</span>
			</div>
			<div class="addr">
				<input type="radio" name="addr" value="4" />
				<span>添加新地址</span>
			</div> -->
			<div class="add_address">
				<div class="text">
					<div class="addr">		
						<select class="province" name="province">
							<option class="first" value=""></option>
						</select>

						<select class="city" name="city">
							<option class="first" value=""></option>
						</select>

						<select class="county" name="area">
							<option class="first" value=""></option>
						</select>

						<input type="text" class="detailed_addre" name="detailed_addre" placeholder="详细地址" maxlength="25" />
					</div>

					<div class="connect">
						<input type="text" name="name" class="name" placeholder="收货人" maxlength="12" />
						<input type="text" name="mobile_num" class="mobile_num" placeholder="联系手机" maxlength="11" />
						<input type="text" name="phone_num" class="phone_num" placeholder="座机号码" maxlength="11" />
						<!-- <input type="text" name="zip_code" class="zip_code" placeholder="邮编" maxlength="6" /> -->
					</div>
				</div>

				<div class="btn">
					<input type="button" name="add_btn" class="add_btn" id="add_btn" value="添加地址" event-click="{{'$Event.add_user_address'}}" />
				</div>
			</div>
		</div>
	</div>

	<div class="item">

		<div class="title2">支付方式</div>
		<div class="info">
			<div class="pay-type">
				<input checked="{{user.pay_ach.info.pay_method}}" type="radio" bind-input="{{'$Cache.pays.buy_method'}}" name="pay-type" value="partner_trade_by_buyer" event-change="{{'$Event.pays.change_pay_method'}}" disabled="{{!(bus_info.info.alipay.seller_email&&bus_info.info.alipay.key&&bus_info.info.alipay.partner)}}"/> <!-- disabled="disabled" -->在线支付
				<span>使用支付宝的快捷支付</span>
			</div>
			<div class="pay-type">
				<input checked="{{user.pay_ach.info.pay_method}}" type="radio" bind-input="{{'$Cache.pays.buy_method'}}" name="pay-type" value="payment_in_cash" event-change="{{'$Event.pays.change_pay_method'}}" />货到付款
				<span>用于大金额订单</span>
			</div>
			<!-- <div class="pay-type">
				<input type="radio" name="pay-type" value="1" />邮局汇款
				<span>通过快钱平台收款 汇款后1-3个工作日到账</span>
			</div> -->
		</div>
	</div>

	<div class="item">
		<div class="title2">商品清单</div>
		<div class="info">
			<table>
				<thead>
					<td class="goods">商品</td>
					<td class="price">价格</td>
					<td class="discount">优惠</td>
					<td class="count">数量</td>
				</thead>
				{{#each user.pay_ach.info.goods_info}}
				<tr>
					<td>
						<div>
						<a href="/goods-details.html?id={{goods._id}}#default/comments">{{goods.goods_name}}</a>
						</div>
						<div>
							商品编号：{{goods._id}}
						</div>
					</td>
					<td><!-- {{goods.cash||goods.price}} -->{{goods.price}}</td>
					<td>{{(goods.price-goods.cash)||0}}</td>
					<td>{{num}}</td>
				</tr>
				{{/each}}
				<!-- <tr>
					<td>
						<div>
						<a href="">缤特力（Plantronics） Voyager Edge 蓝牙耳机 碳晶黑色</a>
						</div>
						<div>
							商品编号：12345678
						</div>
					</td>
					<td>999.0</td>
					<td>15.0</td>
					<td>1</td>
				</tr>
				<tr>
					<td>
						<div>
						<a href="">罗技（Logitech） G100s 即时战略/在线竞技光电游戏鼠标 蓝色</a>
						</div>
						<div>
							商品编号：12345678
						</div>
					</td>
					<td>999.0</td>
					<td>15.0</td>
					<td>1</td>
				</tr> -->
			</table>

			<div class="money">
				<div class="money-item">
					<div class="left">商品总金额：</div>
					<div class="right">{{user.pay_ach.info.price}}</div>
				</div>
				<div class="money-item">
					<div class="left">优惠：</div>
					<div class="right">{{user.pay_ach.info.price-user.pay_ach.cash}}</div>
				</div>
				<div class="money-item">
					<div class="left">应付金额：</div>
					<div class="right">{{user.pay_ach.cash}}</div>
				</div>
			</div>
		</div>
	</div>

	<div class="item">
		<!-- <div class="info">
			{{#if user.pay_ach.info.pay_method==="payment_in_cash"}}
			等待发货
			{{#else}}
			<input class="btn" type="button" value="去付款" name="submit" disabled="disabled" />
			{{/if}}
		</div> -->
        {{#> "user_ach_controller","user.pay_ach"}}
	</div>

</div>